#ifndef __PLAYER_AI_H__
#define __PLAYER_AI_H__

#include "script/luaex/luaex.h"
#include "./playermsg.h"

class PlayerAI : public PlayerMsg
{
public:
	PlayerAI(int id,
		string strName, 
		Point startPos, 
		float startAngle, 
		Point hpPos,
		float z,
		Color color);
	~PlayerAI();

	void DoAI(TankMsg* pMsg);

	//called by Game.GetPlayers
	luaobj& GetPlayerObj();

private:
	luathread m_luathread;
	luaobj m_playermsgobj;
	luaobj m_playerobj;
	luaobj m_funcobj;
};

#endif